import { useState, useEffect } from 'react';
import styles from './index.less';
import jQuery from 'jquery';

const $ = jQuery;
const pageTitle = document.title;

export default () => {
  console.log('吐槽弹幕网');

  useEffect(() => {
    setTimeout(() => {
      document.title = pageTitle;
    }, 500);

    if (location.host === 'www.tucao.one') {
      $('head').append(`
        <style>
          *, *::before, *::after {
            box-sizing: content-box;
          }
        </style>
      `);
    }
  }, []);
  return <div></div>;
};
